use url::Url;
pub fn redirect_frontends(url: &Url) -> Option<Url> {
    let mut res_url = url.clone();
    match url.host_str().unwrap() {
        "twitter.com" => {
            res_url.set_host(Some("nitter.pussthecat.org")).unwrap();
            Some(res_url)
        }
        "youtube.com" => {
            res_url.set_host(Some("yt.jae.fi")).unwrap();
            Some(res_url)
        }
        "medium.com" => {
            res_url.set_host(Some("scribe.rip")).unwrap();
            Some(res_url)
        }
        _ => None,
    }
    // url.to_owned()
}
